package pl.edu.agh.pros.proxy.model;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
@XmlRootElement(name = "xmppConfig")
public class XmppServerConfiguration implements Serializable {

	private static final long serialVersionUID = 1093906695897023098L;

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;

	@Persistent
	private Key providerKey;

	@Persistent
	private String hostname;

	@Persistent
	private int port;

	@Persistent
	private String conferenceService;

	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public Key getProviderKey() {
		return providerKey;
	}

	public void setProviderKey(Key providerKey) {
		this.providerKey = providerKey;
	}

	@XmlElement
	public String getHostname() {
		return hostname;
	}

	public void setHostname(String hostname) {
		this.hostname = hostname;
	}

	@XmlElement
	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	@XmlElement
	public String getConferenceService() {
		return conferenceService;
	}

	public void setConferenceService(String conferenceService) {
		this.conferenceService = conferenceService;
	}

}
